<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script>
    var ee = decument.getElementById('ee');
    var js = decument.getElementById('js');
    var list = decument.getElementById('list');
    list.insertBefore(ee,js);
</script>
<body>
    <p id = "js">JavaScript </p>
<div id = "list">
    <p id = "se">JavaSE</p>
    <p id = "ee">JavaEE</p>
    <p id = "me">JavaME</p>
</div>

</body>
</html>